// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//导入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//导入js文件
import user from './user/user'
import customer from './user/customer'
import person from './user/person'

Vue.use(ElementUI);

Vue.config.productionTip = false

//引入axios
import axios from 'axios'
//配置axios的全局基本路径
axios.defaults.baseURL="https://www.fastmock.site/mock/658e72a365b9e52a5db8e4da56c15a65/pethome"
//全局属性配置，在任意组件内可以使用this.$http获取axios对象
Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
